package com.weijun.keepalive_daemon

import com.weijun.keepalive_daemon.process.ProcessHelper

class NativeLib {

    /**
     * A native method that is implemented by the 'keepalive_daemon' native library,
     * which is packaged with this application.
     */
    external fun stringFromJNI(): String

    companion object {
        // Used to load the 'keepalive_daemon' library on application startup.
        init {
            System.loadLibrary("keepalive_daemon")
        }
    }

    external fun doDaemon(indicatorSelfPath:String,indicatorDaemonPath:String,observerSelfPath:String,observerDaemonPath:String)

    fun onDaemonDead(){
        ProcessHelper.mDaemonStrategy?.onDaemonDead()
    }
}